package com.zjy.dao;

import com.zjy.bean.GoodsBrand;
import com.zjy.bean.GoodsBrand;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
@Repository
public interface GoodsBrandMapper extends Mapper<GoodsBrand> {

    /**
     * 判断type是否存在
     * @param type
     * @return
     */
    int checkExistType(int type);

    /**
     * 通过Id查找商品品牌
     * @param brandId
     * @return
     */
    GoodsBrand selectGoodsBrandById(String brandId);

    /**
     * 通过Id软删除商品品牌
     * @param brandId
     * @return
     */
    int deleteGoodsBrandById(String brandId);

    /**
     * 查找所有的商品品牌
     * @return
     */
    List<GoodsBrand> selectAllGoodsBrand();

}